import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SMiniGuildInfo
    
    export  class SMiniGuildInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SMiniGuildInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.guildId);
            arg1.writeString(this.guildName);
            arg1.writeInt(this.camp);
            arg1.writeString(this.leaderName);
            arg1.writeInt(this.level);
            arg1.writeInt(this.playerNum);
            arg1.writeInt(this.maxPlayerNum);
            arg1.writeInt(this.rank);
            arg1.writeBool(this.haveSpace);
            arg1.writeBool(this.apply);
            arg1.writeInt(this.house);
            arg1.writeInt(this.leaderVIP);
            arg1.writeBool(this.hasUnion);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.guildId = arg1.readInt();
            this.guildName = arg1.readString();
            this.camp = arg1.readInt();
            this.leaderName = arg1.readString();
            this.level = arg1.readInt();
            this.playerNum = arg1.readInt();
            this.maxPlayerNum = arg1.readInt();
            this.rank = arg1.readInt();
            this.haveSpace = arg1.readBool();
            this.apply = arg1.readBool();
            this.house = arg1.readInt();
            this.leaderVIP = arg1.readInt();
            this.hasUnion = arg1.readBool();
            return;
        }

        public /* const */_type: int=12041;

        public /* var */guildId: int;

        public /* var */guildName: string;

        public /* var */camp: int;

        public /* var */leaderName: string;

        public /* var */level: int;

        public /* var */playerNum: int;

        public /* var */maxPlayerNum: int;

        public /* var */rank: int;

        public /* var */haveSpace: Boolean;

        public /* var */apply: Boolean;

        public /* var */house: int;

        public /* var */leaderVIP: int;

        public /* var */hasUnion: Boolean;

        public static /* var */_regist: SMiniGuildInfo;
    }

            SMiniGuildInfo._regist = new SMiniGuildInfo(true);
        